

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "../WXOpenSDK/WXApi.h"
#import "./WechatDelegate.h"
NS_ASSUME_NONNULL_BEGIN
 
//文档 https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html#jump3

@interface IosWechat : NSObject 
{
    //@private id<WechatDelegate> mDelegate;
}

//初始化
+(void)go:(NSString*) wxAppId universalLink:(NSString*) universalLink delegate:(id<WechatDelegate>) delegate;

//请求登录
+(void)sendAuthRequest;

//----------------------------------
//重写接口
//----------------------------------

+(BOOL)override_application:(UIApplication *)application handleOpenURL:(NSURL *)url ;

+(BOOL)override_application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation ;




//[3] 重写AppDelegate或SceneDelegate的continueUserActivity方法： 注意：适配了SceneDelegate的App，系统将会回调SceneDelegate的continueUserActivity方法，所以需要重写SceneDelegate的该方法。

+(BOOL)override_application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArray<id<UIUserActivityRestoring>> * __nullable restorableObjects))restorationHandler;


//SceneDelegate:
+(void)override_scene:(UIScene *)scene continueUserActivity:(NSUserActivity *)userActivity;

@end


NS_ASSUME_NONNULL_END
